package seres;

public class Terricola extends Guerrero{

	private static int total;

	
	public static int getTotal(){
		return Terricola.total;
	}

    /**
     *
     * @param i
     */
    @Override
	public void recibeDisparo(int i){
		if (vivo && blanco==i){
			vivo=false;
			total--;
			System.out.println(soy+" muerto por disparo no. "+i);
		}
	}
	
	public Terricola(String soy){
		super(soy);
		this.soy=soy;
		total++;
	}

}